solving a linear equation in two variables for a given value